package com.icloud.common.database.enums;


import lombok.Getter;

/**
 * 红包类型
 */
@Getter
public enum RedPacketTypeEnum {

    EXCLUSIVE("EXCLUSIVE","专属红包"), // 目前只做专属
    NORMAL("NORMAL","普通红包"),
    RANDOM("RANDOM","拼手气红包"),
    SINGLE_NORMAL("SINGLE_NORMAL","单聊普通红包");

    private final String code;

    private final String cn;

    RedPacketTypeEnum(String code, String cn) {
        this.code = code;
        this.cn = cn;
    }

    public static boolean isNormal(String code){
        return NORMAL.code.equalsIgnoreCase(code);
    }
    public static boolean isExclusive(String code){
        return EXCLUSIVE.code.equalsIgnoreCase(code);
    }
    public static boolean isRandom(String code){
        return RANDOM.code.equalsIgnoreCase(code);
    }
    public static boolean isSingleNormal(String code){
        return SINGLE_NORMAL.code.equalsIgnoreCase(code);
    }
}
